package content.views.works;
import feffects.easing.Quad;
import tools.ASprite;

/**
 * ...
 * @author PRASS
 */

class MiniNavItem extends ASprite
{
	
	private var _selected : Bool;
	
	public function new( jq : JQuery, pID : String) 
	{
		super(jq,pID);
		
		//dom.mouseover( function(e) { _rollOver(e); } );
		//dom.mouseout( function(e) { _rollOut(e); } );
		dom.css("cursor", "pointer");
		setAlpha(1);
	}
	
	private function _rollOver(e) : Void
	{
		if (_selected) return;
		
		//tween(getAlpha(), setAlpha, .85, 300, Quad.easeInOut);
	}
	
	private function _rollOut(e) : Void
	{
		if (_selected) return;
		
		//tween(getAlpha(), setAlpha, 1, 300, Quad.easeInOut);
	}
	
	public function select() : Void
	{
		//_selected = true;
		
		dom.addClass("miniNavItemSelected");
		dom.css("cursor", "default");
	}
	
	public function unselect() : Void
	{
		//_selected = false;
		dom.removeClass("miniNavItemSelected");
		dom.css("cursor", "pointer");
	}
	
}